package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: Mamba
 * @Description:
 * @Time: 2021/1/8 19:11
 * @version: 1.0
 */
public interface OrderInfoService {
    Long submitOrder(OrderInfo orderInfo);

    Boolean hasStock(Long skuId, Integer skuNum);



    void cancelOrder(Long orderId);

    //获取订单 根据ID
    public OrderInfo getOrderInfo(Long orderId);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    public Map initWareOrder(Long orderId);
    public Map initWareOrder(OrderInfo orderInfo);
    //查询订单表及详情表
    public OrderInfo getOrderInfoWithOrderDetail(Long orderId);
}
